@forrestjs/core
ForrestJS helps you build a Modular JavaScript Application where you can (almost) forget about the infrastructure and FOCUS ON YOUR BUSINESS VALUE.
Install & Setup
npm add @forrestjs/core
Quick Code Example
https://codesandbox.io/p/sandbox/service-fastify-th8dq?file=%2Fsrc%2Findex.js
const forrest = require('@forrestjs/core');
const fastify = require('@forrestjs/service-fastify');
forrest.run({
services: [fastify],
features: [{
target: '$FASTIFY_ROUTE',
handler: {
method: 'GET',
url: '/',
handler: async () => 'Hello World',
},
}],
settings: {
fastify: {
port: '8080'
}
}
]);
Documentation